package com.jeecg.demo.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Commodity entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "COMMODITY")
public class Commodity implements java.io.Serializable {

    // Fields

    private java.lang.Integer commodityid;
    private java.lang.Integer sysid;
    private java.lang.Integer varietyid;
    private java.lang.Integer tradercommodityid;
    private String commodityname;
    private String field1;
    private String field2;
    private String field3;
    private String field4;
    private String field5;
    private String field6;
    private String field7;
    private String field8;
    private String field9;
    private String field10;
    private String varietyname;
    private java.lang.Integer sectorid;
    private String sectorname;
    private String pinzhid;
    private String chdregioncode;

    // Constructors

    /** default constructor */
    public Commodity() {
    }

    /** minimal constructor */

    /** full constructor */
    public Commodity(Integer commodityid, Integer sysid, Integer varietyid,
            Integer tradercommodityid, String commodityname, String field1,
            String field2, String field3, String field4, String field5,
            String field6, String field7, String field8, String field9,
            String field10, String commodityxml) {
        this.commodityid = commodityid;
        this.sysid = sysid;
        this.varietyid = varietyid;
        this.tradercommodityid = tradercommodityid;
        this.commodityname = commodityname;
        this.field1 = field1;
        this.field2 = field2;
        this.field3 = field3;
        this.field4 = field4;
        this.field5 = field5;
        this.field6 = field6;
        this.field7 = field7;
        this.field8 = field8;
        this.field9 = field9;
        this.field10 = field10;

    }

    // Property accessors
    @Id
    @Column(name = "COMMODITYID", unique = true, nullable = false, scale = 0)
    public Integer getCommodityid() {
        return this.commodityid;
    }

    public void setCommodityid(Integer commodityid) {
        this.commodityid = commodityid;
    }

    @Column(name = "SYSID", nullable = false, scale = 0)
    public Integer getSysid() {
        return this.sysid;
    }

    public void setSysid(Integer sysid) {
        this.sysid = sysid;
    }

    @Column(name = "VARIETYID", nullable = false, scale = 0)
    public Integer getVarietyid() {
        return this.varietyid;
    }

    public void setVarietyid(Integer varietyid) {
        this.varietyid = varietyid;
    }

    @Column(name = "TRADERCOMMODITYID", nullable = false, scale = 0)
    public Integer getTradercommodityid() {
        return this.tradercommodityid;
    }

    public void setTradercommodityid(Integer tradercommodityid) {
        this.tradercommodityid = tradercommodityid;
    }

    @Column(name = "COMMODITYNAME", nullable = false, length = 100)
    public String getCommodityname() {
        return this.commodityname;
    }

    public void setCommodityname(String commodityname) {
        this.commodityname = commodityname;
    }

    @Column(name = "FIELD1", length = 100)
    public String getField1() {
        return this.field1;
    }

    public void setField1(String field1) {
        this.field1 = field1;
    }

    @Column(name = "FIELD2", length = 100)
    public String getField2() {
        return this.field2;
    }

    public void setField2(String field2) {
        this.field2 = field2;
    }

    @Column(name = "FIELD3", length = 100)
    public String getField3() {
        return this.field3;
    }

    public void setField3(String field3) {
        this.field3 = field3;
    }

    @Column(name = "FIELD4", length = 100)
    public String getField4() {
        return this.field4;
    }

    public void setField4(String field4) {
        this.field4 = field4;
    }

    @Column(name = "FIELD5", length = 100)
    public String getField5() {
        return this.field5;
    }

    public void setField5(String field5) {
        this.field5 = field5;
    }

    @Column(name = "FIELD6", length = 100)
    public String getField6() {
        return this.field6;
    }

    public void setField6(String field6) {
        this.field6 = field6;
    }

    @Column(name = "FIELD7", length = 100)
    public String getField7() {
        return this.field7;
    }

    public void setField7(String field7) {
        this.field7 = field7;
    }

    @Column(name = "FIELD8", length = 100)
    public String getField8() {
        return this.field8;
    }

    public void setField8(String field8) {
        this.field8 = field8;
    }

    @Column(name = "FIELD9", length = 100)
    public String getField9() {
        return this.field9;
    }

    public void setField9(String field9) {
        this.field9 = field9;
    }

    @Column(name = "FIELD10", length = 100)
    public String getField10() {
        return this.field10;
    }

    public void setField10(String field10) {
        this.field10 = field10;
    }

    @Column(name = "VARIETYNAME", precision = 100)
    public String getVarietyname() {
        return varietyname;
    }

    public void setVarietyname(String varietyname) {
        this.varietyname = varietyname;
    }

    public void setSectorid(Integer sectorid) {
        this.sectorid = sectorid;
    }

    public Integer getSectorid() {
        return sectorid;
    }

    public void setSectorname(String sectorname) {
        this.sectorname = sectorname;
    }

    public String getSectorname() {
        return sectorname;
    }

    public void setPinzhid(String pinzhid) {
        this.pinzhid = pinzhid;
    }

    public String getPinzhid() {
        return pinzhid;
    }

    public void setChdregioncode(String chdregioncode) {
        this.chdregioncode = chdregioncode;
    }

    public String getChdregioncode() {
        return chdregioncode;
    }

}